package com.pay.bean;

import java.io.Serializable;

/**
 * decs:
 * Created by @hsk198
 * 2017/9/24 0024
 */
public class ResponseBean <T> implements Serializable {

    /**
     * 返回码
     */
    private String code;
    /**
     * 返回消息
     */
    private String msg;
    /**
     * 操作对象
     */
    private T data;

    /** 无参构造方法 */
    public ResponseBean() {
        super();
    }

    public ResponseBean(String code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }

    public ResponseBean(String code, String msg, T data) {
        super();
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ReturnContent [code=" + code + ", msg=" + msg + ", data=" + data + "]";
    }
}
